<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>svg图标测试</title>
    <script src="./iconfont/iconfont.js"></script>
    <style>
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }

        .test{
            font-size: 30px;
            color: blueviolet;
        }
    </style>
</head>

<body>

    <div class="box">
        <svg class="icon test" aria-hidden="true">
            <use xlink:href="#icon-cancel"></use>
        </svg>
        <svg class="icon test" aria-hidden="true">
            <use xlink:href="#icon-save-close"></use>
        </svg>
    </div>


</body>

</html>